import r from '@/core/utils/request'

const API_PREFIX = '/sys/dict/option'

export const useDictApi = () => {
    const listOptionsByCode = (code: string) => {
        return r.get(`${API_PREFIX}/listByCode/${code}`)
    }
    return {listOptionsByCode}
}